import http from "@/api";

/**
 * @name 酒店管理模块
 */
// 获取酒店列表
export const getHotelList = (params = {}) => {
  return http.post(`/hotel/query`, params, { noLoading: true });
};
// 获取酒店详情
export const getHotelDtl = (params: { hotelid: string }) => {
  return http.post(`/hotel/one`, params);
};
// 新增酒店
export const addHotel = (params = {}) => {
  return http.post(`/hotel/create`, params, { noLoading: true });
};
// 编辑酒店
export const editHotel = (params: { hotelid: string }) => {
  return http.post(`/hotel/update`, params, { noLoading: true });
};

// 删除酒店
export const deleteHotel = (params: { hotelid: string }) => {
  return http.post(`/hotel/delete`, params);
};
